{%extends "base.html"%}
{%block body%}
<script type="text/javascript">
	
	$(document).ready(function(){
		$("#formEdit").validate({
			rules:{
				"name": "required"
			}
		});
	});
		
</script>
<table cellpadding="2" width="100%" class="smallfont" border="0">
  <tr>
  	<td class="errorlist" >{{err}}</td>
  </tr>
</table> 
<form name="formEdit" id="formEdit" action="" method="post" enctype='multipart/form-data'>
<table border="0" cellpadding="5" cellspacing="0" width=100%>
{% if item.image %}
				<tr><td><img title="image" src='/vmember/image/{{item.key.id}}'></td></tr>
{% endif %}
<tr >
	<th width="100">Tên</th>
	<td><input name="name" id="name" type="text" size="30" value="{{item.name}}" ></td>
</tr>
<tr>
	<th>Hình ảnh</th>
	<td><input type='file' name='image'></td>
</tr>
</table>
<br><br>
<input type="submit" value="Cập nhật">
<br><br>
</form>
{%endblock%}